MFCKeyboardMouseCallbacktime Class Reference

#include <MFCKeyboardMouseCallbacktime.h>

List of all members.

Public Member Functions

 MFCKeyboardMouseCallbacktime (osgUtil::SceneView *sceneView)
void home ()
virtual void keyPress (Producer::KeyCharacter key)
virtual void mouseMotion (float mx, float my)
virtual void buttonPress (float mx, float my, unsigned int mbutton)
virtual void buttonRelease (float mx, float my, unsigned int mbutton)
float mx ()
float my ()
unsigned int mbutton ()
void resetTrackball ()
osg::Matrixd getViewMatrix ()

Private Attributes

float _mx
float _my
float _mx_buttonPress
float _my_buttonPress
unsigned int _mbutton
osg::ref_ptr< Producer::Trackball > _trackBall
osg::ref_ptr< osgUtil::SceneView > _sceneView


Detailed Description

MFCKeyboardMouseCallbacktime Class. Deals with the keyboard mouse events of the TimeLine

Definition at line 6 of file MFCKeyboardMouseCallbacktime.h.


Constructor & Destructor Documentation

MFCKeyboardMouseCallbacktime::MFCKeyboardMouseCallbacktime (  osgUtil::SceneView *  sceneView  )  [inline]
 

Constructor for the MFCKeyboardMouseCallbacktime

Parameters:
sceneView viewer

Definition at line 14 of file MFCKeyboardMouseCallbacktime.h.

References resetTrackball().


Member Function Documentation

virtual void MFCKeyboardMouseCallbacktime::buttonPress (  float  mx,
float  my,
unsigned int  mbutton
)  [inline, virtual]
 

Handles the mouse buttons press events.

Definition at line 53 of file MFCKeyboardMouseCallbacktime.h.

References _mbutton, _mx, _mx_buttonPress, _my, and _my_buttonPress.

virtual void MFCKeyboardMouseCallbacktime::buttonRelease (  float  mx,
float  my,
unsigned int  mbutton
)  [inline, virtual]
 

Handles the mouse buttons release events.

Definition at line 67 of file MFCKeyboardMouseCallbacktime.h.

References _mbutton, _mx, and _my.

osg::Matrixd MFCKeyboardMouseCallbacktime::getViewMatrix (   )  [inline]
 

Getter for the View MAtrix.

Returns:
view Matrix

Definition at line 112 of file MFCKeyboardMouseCallbacktime.h.

References _trackBall, mbutton(), mx(), and my().

void MFCKeyboardMouseCallbacktime::home (   )  [inline]
 

To get to the initial position.

Definition at line 28 of file MFCKeyboardMouseCallbacktime.h.

References resetTrackball().

virtual void MFCKeyboardMouseCallbacktime::keyPress (  Producer::KeyCharacter  key  )  [inline, virtual]
 

To get to the initial position.

Definition at line 36 of file MFCKeyboardMouseCallbacktime.h.

References resetTrackball().

unsigned int MFCKeyboardMouseCallbacktime::mbutton (   )  [inline]
 

Getter for the mouse button pressed, Y coordinate

Returns:
mouse button

Definition at line 90 of file MFCKeyboardMouseCallbacktime.h.

References _mbutton.

Referenced by getViewMatrix().

virtual void MFCKeyboardMouseCallbacktime::mouseMotion (  float  mx,
float  my
)  [inline, virtual]
 

Handles the mouse motion events.

Definition at line 44 of file MFCKeyboardMouseCallbacktime.h.

References _mx, and _my.

float MFCKeyboardMouseCallbacktime::mx (   )  [inline]
 

Getter for the mouse position, X coordinate

Returns:
coordinate x

Definition at line 78 of file MFCKeyboardMouseCallbacktime.h.

References _mx.

Referenced by getViewMatrix().

float MFCKeyboardMouseCallbacktime::my (   )  [inline]
 

Getter for the mouse position, Y coordinate

Returns:
coordinate y

Definition at line 84 of file MFCKeyboardMouseCallbacktime.h.

References _my.

Referenced by getViewMatrix().

void MFCKeyboardMouseCallbacktime::resetTrackball (   )  [inline]
 

Resets the trackball

Definition at line 95 of file MFCKeyboardMouseCallbacktime.h.

References _sceneView, and _trackBall.

Referenced by home(), keyPress(), and MFCKeyboardMouseCallbacktime().


Member Data Documentation

unsigned int MFCKeyboardMouseCallbacktime::_mbutton [private]
 

Definition at line 122 of file MFCKeyboardMouseCallbacktime.h.

Referenced by buttonPress(), buttonRelease(), and mbutton().

float MFCKeyboardMouseCallbacktime::_mx [private]
 

Definition at line 120 of file MFCKeyboardMouseCallbacktime.h.

Referenced by buttonPress(), buttonRelease(), mouseMotion(), and mx().

float MFCKeyboardMouseCallbacktime::_mx_buttonPress [private]
 

Definition at line 121 of file MFCKeyboardMouseCallbacktime.h.

Referenced by buttonPress().

float MFCKeyboardMouseCallbacktime::_my [private]
 

Definition at line 120 of file MFCKeyboardMouseCallbacktime.h.

Referenced by buttonPress(), buttonRelease(), mouseMotion(), and my().

float MFCKeyboardMouseCallbacktime::_my_buttonPress [private]
 

Definition at line 121 of file MFCKeyboardMouseCallbacktime.h.

Referenced by buttonPress().

osg::ref_ptr<osgUtil::SceneView> MFCKeyboardMouseCallbacktime::_sceneView [private]
 

Definition at line 125 of file MFCKeyboardMouseCallbacktime.h.

Referenced by resetTrackball().

osg::ref_ptr<Producer::Trackball> MFCKeyboardMouseCallbacktime::_trackBall [private]
 

Definition at line 124 of file MFCKeyboardMouseCallbacktime.h.

Referenced by getViewMatrix(), and resetTrackball().


The documentation for this class was generated from the following file:
Generated on Sun May 28 18:54:13 2006 for TraffEdu by  doxygen 1.4.6-NO